<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>设置我的资料</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <#include "../../include/layui.ftl" />

</head>
<body>
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <form class="layui-form layui-form-pane" action="" lay-filter="layer-from">
            <input type="hidden" name="id" value="1">
            <div class="layui-card-header">微信支付设置</div>
          <div class="layui-card-body" pad15>
            
            <div class="layui-form" lay-filter="">
              <div class="layui-form-item">
                <label class="layui-form-label" style="width: 150px;">app_id</label>
                <div class="layui-input-inline" style="width: 400px;">
                  <input type="text" name="appId"  class="layui-input" readonly>
                </div>
              </div>
              <div class="layui-form-item">
                <label class="layui-form-label" style="width: 150px;">secret</label>
                <div class="layui-input-inline" style="width: 400px;">
                  <input type="text" name="secret" lay-verify="nickname" autocomplete="off"  class="layui-input" readonly>
                </div>
              </div>
              <div class="layui-form-item">
                  <label class="layui-form-label" style="width: 150px;">商户号</label>
                  <div class="layui-input-inline" style="width: 400px;">
                      <input type="text" name="mchId" lay-verify="mchId" readonly autocomplete="off" class="layui-input">
                  </div>
              </div>
              <div class="layui-form-item">
                  <label class="layui-form-label" style="width: 150px;">接口地址</label>
                  <div class="layui-input-inline" style="width: 400px;">
                      <input type="text" name="wxUrl"  lay-verify="wxUrl" autocomplete="off" class="layui-input">
                  </div>
              </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">支付接口地址</label>
                    <div class="layui-input-inline" style="width: 400px;">
                        <input type="text" name="payUrl"  lay-verify="payUrl" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">partner_key</label>
                    <div class="layui-input-inline" style="width: 400px;">
                        <input type="text" name="partnerKey"  lay-verify="partnerKey" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">小程序通知地址</label>
                    <div class="layui-input-inline" style="width: 400px;">
                        <input type="text" name="jsNotifyUrl"  lay-verify="jsNotifyUrl" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 150px;">web通知地址</label>
                    <div class="layui-input-inline" style="width: 400px;">
                        <input type="text" name="nativeNotifyUrl"  lay-verify="nativeNotifyUrl" autocomplete="off" class="layui-input">
                    </div>
                </div>
              <div class="layui-form-item">
                <div class="layui-input-block">
                  <button class="layui-btn" style="float: left;" lay-submit lay-filter="setmyinfo">确认修改</button>
                </div>
              </div>
            </div>
            
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
  <script>
      layui.config({
          base: '${path}/plug-in/layuiadmin/' //静态资源所在路径
      }).extend({
          index: 'lib/index' //主入口模块
      }).use(['index','form','jquery'],function () {
          var form = layui.form,
                  $ = layui.$;
          var formData = JSON.parse('${infoData}');
          form.val("layer-from", $.extend(true,{},formData));
          form.on('submit(setmyinfo)', function(data){
              $.getJSON("/console/com.fs.common.pojo.WechatPayConfig/modify",data.field,function(rep){
                  layer.msg(rep.msg);
              });
              return false;
          });
      });
  </script>
</body>
</html>